package cn.pfund.util;
/**
 * @description 参数bean api也用 修改时注意
 * @author zhaominglei qq:351024274，专注于网站、app和游戏开发。
 * @date 2014-9-7
 */
public class ParamBean {
	private static final int DEFAULT_PAGE_SIZE = 50; // 默认每页记录数
	private String url; //分页url
	private int page; //页码
	private int pageSize; //每页记录数
	private String startDate; //开始时间
	private String endDate; //结束时间 
	private String keyword; //关键字
	private String field; //属性名
	
	private Long productId; //商品id
	
	private String username; //用户名 
	private String password; //密码
	private String sign; //签名
	
	private String email; //邮箱
	private String name; //姓名
	private String nPassword; //新密码
	
	private Long productTypeId; //商品类别id
	private Long tagId; //商品标签id
	private int psort; // 商品排序  0 默认时间倒序 1价格升序 2价格倒序  
	private Integer type; //cms类型 0技术团队 1了解美傲 2美傲服务  // 类型 0全部产品 1轮播图片 2推荐分类 3推荐产品 4热门产品 5横幅图片 6美傲技术
	private String validateCode; //验证码
	private String mobile; //手机号
	private Long companyinfoTypeId; //企业信息类别 id
	private Integer belongto; //归属 1关于我们 2客服中心
	private Long newsTypeId; //新闻类别id
	private Long newsId; //新闻id
	
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public int getPage() {
		if (page <= 0) {
			page = 1;
		}
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getPageSize() {
		if (pageSize <= 0) {
			return DEFAULT_PAGE_SIZE;
		}
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public String getStartDate() {
		return startDate;
	}
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	public String getEndDate() {
		return endDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	public String getKeyword() {
		return keyword;
	}
	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
	public String getField() {
		return field;
	}
	public void setField(String field) {
		this.field = field;
	}
	public Long getProductId() {
		return productId;
	}
	public void setProductId(Long productId) {
		this.productId = productId;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSign() {
		return sign;
	}
	public void setSign(String sign) {
		this.sign = sign;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getnPassword() {
		return nPassword;
	}
	public void setnPassword(String nPassword) {
		this.nPassword = nPassword;
	}
	public int getPsort() {
		return psort;
	}
	public void setPsort(int psort) {
		this.psort = psort;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getValidateCode() {
		return validateCode;
	}
	public void setValidateCode(String validateCode) {
		this.validateCode = validateCode;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public Long getProductTypeId() {
		return productTypeId;
	}
	public void setProductTypeId(Long productTypeId) {
		this.productTypeId = productTypeId;
	}
	public Long getTagId() {
		return tagId;
	}
	public void setTagId(Long tagId) {
		this.tagId = tagId;
	}
	public Long getCompanyinfoTypeId() {
		return companyinfoTypeId;
	}
	public void setCompanyinfoTypeId(Long companyinfoTypeId) {
		this.companyinfoTypeId = companyinfoTypeId;
	}
	public Integer getBelongto() {
		return belongto;
	}
	public void setBelongto(Integer belongto) {
		this.belongto = belongto;
	}
	public Long getNewsTypeId() {
		return newsTypeId;
	}
	public void setNewsTypeId(Long newsTypeId) {
		this.newsTypeId = newsTypeId;
	}
	public Long getNewsId() {
		return newsId;
	}
	public void setNewsId(Long newsId) {
		this.newsId = newsId;
	}
}
